package com.oak.broke.model.vip.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oak.broke.model.vip.entity.TsDmEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tanghan
 * @Description ts_dm dao
 * @date 2023/04/13/ 10:47:00
 */
@Mapper
public interface TsDmDao extends BaseMapper<TsDmEntity> {

    /**
     * 获取ts_dm
     *
     * @param kind 类型
     * @return
     */
    List<TsDmEntity> listTsDmByKind(@Param("kind") String kind);

    /**
     * 根据kind和code，获取ts_dm
     *
     * @param kind 类型
     * @param code code
     * @return
     */
    TsDmEntity getTsDmByKindAndCode(@Param("kind") String kind, @Param("code") String code);
}
